package com.rtx.edi.platform.jobextend.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rtx.edi.platform.jobextend.bean.po.PlJobMapping;

@Mapper
public interface PlJobMappingMapper extends BaseMapper<PlJobMapping>{

	@Select("${sql}")
	List<Map<String,Object>> query(@Param("sql")String sql);
	
	@Delete("delete from pl_job_mapping where job_id =#{job_id}")
	int delByJobId(@Param("job_id")Long jobId);

	@Update("${sql}")
	Integer update(@Param("sql")String sql);
}
